package com.sunlong.jiangwei.web;


import com.sunlong.jiangwei.entity.JwCart;
import com.sunlong.jiangwei.entity.JwUserAddresslist;
import com.sunlong.jiangwei.entity.result.Result;
import com.sunlong.jiangwei.service.IJwUserAddresslistService;
import com.sunlong.jiangwei.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 孙龙
 * @since 2021-02-19
 */
@RestController
@RequestMapping("/jiangwei/jw-address")
public class JwUserAddresslistController {
    @Autowired
    private IJwUserAddresslistService addresslistService;

    @PostMapping("list")
    public Result<List<JwUserAddresslist>> list(@RequestBody Map<String, Object> map) {
        return ResultUtil.data(addresslistService.list(map));
    }
}
